/****** Object:  Table [dbo].[TB_Board]    Script Date: 09/23/2012 05:11:04 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TB_Board](
	[n1BoardSN] [tinyint] NOT NULL,
	[strBoardName] [nvarchar](20) NOT NULL,
	[dtCreatedDate] [datetime] NOT NULL,
	[dtModifiedDate] [datetime] NOT NULL,
	[strJsonData] [nvarchar](max) NULL,
 CONSTRAINT [PK_TB_Board] PRIMARY KEY CLUSTERED 
(
	[n1BoardSN] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TB_Article]    Script Date: 09/23/2012 05:11:04 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[TB_Article](
	[n1BoardSN] [tinyint] NOT NULL,
	[n4ArticleSN] [int] IDENTITY(1,1) NOT NULL,
	[strTitle] [nvarchar](200) NOT NULL,
	[strContent] [nvarchar](max) NOT NULL,
	[strFileUrl] [varchar](1000) NULL,
	[n4ManagerSNWriter] [int] NOT NULL,
	[strUserID] [varchar](50) NOT NULL,
	[dtCreatedDate] [datetime] NOT NULL,
	[dtModifiedDate] [datetime] NOT NULL,
	[n4ReadCount] [int] NOT NULL,
	[strJsonData] [nvarchar](max) NULL,
 CONSTRAINT [PK_TB_Article] PRIMARY KEY CLUSTERED 
(
	[n1BoardSN] ASC,
	[n4ArticleSN] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
